<?php
/**
 * Created by PhpStorm.
 * User: qiaoli
 * Date: 15/10/1
 * Time: 上午10:57
 */
defined('BASEPATH') OR exit('No direct script access allowed');
class documentm extends CI_Model
{
    public function insert_document($url,$title,$email)
    {
        //ml_document
        $data = array();
        $data['url'] = $url;
        $data['title'] = $title;
        $data['user_id'] = $this->uid;
        $data['email'] = $email;
        $data['add_time'] = time();
        $this->db->insert("ml_document",$data);
        return $this->db->insert_id();
    }
}